<!DOCTYPE html>
<html lang="">
<head>
	<meta charset="utf-8">
	<title>Drag</title>
	<link rel="stylesheet" type="text/css" href="../css/style.css">
</head>
<body>
	<div class="drag drag-0" data-drag-index="0">全屏拖拽</div>
	<div class="drag drag-1" data-drag-index="1">限定区域拖拽</div>
	<script type="text/javascript" src="../script/jquery.js"></script>
	<script type="text/javascript" src="../script/jquery.drag.js"></script>
	<script>
		$(function () {
			//  全屏拖动
			$('.drag-0').drag({
				fullscreen: true,
			});

			//  限定区域拖拽
			$('.drag-1').drag();
		});
	</script>

</body>
</html>
